package com.slipper.system.api.schedule.service;

import com.slipper.common.annotation.FeignRequestMapping;
import com.slipper.common.bo.Result;
import com.slipper.system.api.schedule.bo.ScheduleBO;
import com.slipper.common.feign.ServiceClient;

import java.util.List;

import org.springframework.web.bind.annotation.RequestBody;

/**
 * 任务调度
 * 
 * @date 2020-03-28 17:10:06
 */
@ServiceClient
public interface IScheduleSv {
    @FeignRequestMapping("/schedule/queryBy")
    Result<ScheduleBO> queryBy(@RequestBody ScheduleBO bo);
    
    @FeignRequestMapping("/schedule/queryPage")
    Result<List<ScheduleBO>> queryPage(@RequestBody ScheduleBO bo);
    
    @FeignRequestMapping("/schedule/save")
    Result<?> save(@RequestBody ScheduleBO bo);
    
    @FeignRequestMapping("/schedule/delete")
    Result<?> delete(@RequestBody ScheduleBO bo);

    @FeignRequestMapping("/schedule/queryList")
    Result<List<ScheduleBO>> queryList(@RequestBody ScheduleBO bo);

    @FeignRequestMapping("/schedule/runTask")
    Result<?> runTask(@RequestBody ScheduleBO bo);

    @FeignRequestMapping("/schedule/updateStatus")
    Result<?> updateStatus(@RequestBody ScheduleBO bo);

    @FeignRequestMapping("/schedule/queryOne")
    Result<ScheduleBO> queryOne(@RequestBody ScheduleBO bo);
}
